package net.javashop.biz.user.impl;

import java.util.List;

import net.javashop.biz.user.UserBiz;
import net.javashop.dao.UserDao;
import net.javashop.entity.User;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userBiz")
public class UserBizImpl implements UserBiz{
	
	@Autowired
	private UserDao userDao;
	
	public List<User> getAllUsers() {
		return userDao.getAllUsers();
	}

	public User getUser(int userId) {
		return userDao.getUser(userId);
	}

}
